package com.agileboot.domain.app.user.db;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class AppUserServiceImp extends ServiceImpl<AppUserMapper, AppUserEntity> implements AppUserService {


    /**
     * 根据用户名获取贷款申请日志实体对象
     * 查询用户信息
     *
     * @param userName 用户名
     * @return 贷款申请日志实体对象，如果找不到则返回null
     */
    @Override
    public AppUserEntity getUserByUserName(String userName) {
        QueryWrapper<AppUserEntity> one = new QueryWrapper<>();
        one.eq("phone", userName);
        return this.getOne(one);
    }

    AppUserMapper appUserMapper;



}
